package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"user_manage/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "OPTIONS:Login;POST:Login")
	beego.Router("/add", &controllers.UserController{}, "OPTIONS:Add;POST:Add")
}
